package com.honestpeak.datafusion.web;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.honestpeak.core.datasource.DataSourceContextHolder;
import com.honestpeak.core.datasource.DataSourceType;
import com.honestpeak.datafusion.service.ClubCoursePlaceService;

@Controller
@RequestMapping("/coursePlace")
public class ClubCoursePlaceController {
	
	@Autowired
	private ClubCoursePlaceService clubCoursePlaceService;
	
	/**
     * 查询地图数据
     * @return
     */
    @RequestMapping(value = "/baidu", method = RequestMethod.GET)
    @ResponseBody
    public Object getDitu(String week, String dataDuan){
        DataSourceContextHolder.setDbType(DataSourceType.SPORTS);
        Map<String, Object> resultMap = clubCoursePlaceService.getClubCoursePlace(week,dataDuan);
        return resultMap;
    }

}
